package com.smalluz.ad.modules.oe.api.impl;
 
import com.smalluz.ad.modules.common.enums.MediaApiUrl;
import com.smalluz.ad.modules.oe.api.OeClueService;
import com.smalluz.ad.modules.oe.api.OeService;
import com.smalluz.ad.modules.oe.bean.CluePageRequest;
import com.smalluz.ad.modules.oe.result.ClueResult;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@RequiredArgsConstructor
public class OeClueServiceImpl implements OeClueService {
    
    private final OeService oeService;
    
    @Override
    public ClueResult getPageClue(CluePageRequest clueRequest) {
        String resultContent = oeService.get(MediaApiUrl.ClueUrl.CLUE_OPEN_API_PAGE_LIST, clueRequest);
        log.info("线索接口调用返回：{}",resultContent);
        return ClueResult.fromJson(resultContent);
    }

}
